/*
 * Constants.java
 * Created on March 14, 2008, 1:57 PM
 */

package view;

/**
 *
 * @author Erol Hira
 */
public interface Constants {
    
    // greater ordered components drawn first
    public static final byte MIN_Z_ORDER = 0;
    public static final byte DEFAULT_Z_ORDER = 1;
    
    public static final int[][] CTRL_KEYS = { // [device index][left ctrl:0, right ctrl:1]
        {-6, -7},
        {-21, -22},
        {8, 10},
        {-6, -7}
    };
    
    public interface Devices {
        
        public static final byte NOKIA = 0;
        public static final byte MOTOROLA = 1;
        public static final byte BLACKBERRY = 2;
        public static final byte WINDOWS_MOBILE = 3;
    }        
    
    public interface Layout {
        
        public static final byte VERTICAL_ALIGNMENT = 0;
        public interface VerticalConstraints {
            public static final byte TOP = 0;
            public static final byte VCENTER = 1;
            public static final byte BOTTOM = 2;
        }

        public static final byte HORIZONTAL_ALIGNMENT = 1;
        public interface HorizontalConstraints {
            public static final byte LEFT = 0;
            public static final byte CENTER = 1;
            public static final byte RIGHT = 2;
        }
        
        // begin : only LineLayout
        public static final byte LINE_NUMBER = 2; // from zero to n                        
    }
    
    public interface DataTypes {
        
        public static byte BOOLEAN = 0;
        public static byte BYTE = 1;
        public static byte SHORT = 2;
        public static byte INTEGER = 3;
        public static byte STRING = 4;
        public static byte ARRAY = 5;
        public static byte STRING_ARRAY = 6;        
        public static byte DOUBLE_STRING_ARRAY = 7;
        
    }    
    
    public interface Fields{
        
        public static final int X = 0;
        public static final int Y = 1;
        public static final int WIDTH = 2;
        public static final int HEIGHT = 3;
        public static final int MARGIN_LEFT = 4;
        public static final int MARGIN_RIGHT = 5;
        public static final int MARGIN_TOP = 6;
        public static final int MARGIN_BOTTOM = 7;
        public static final int OUTER_MARGIN_LEFT = 8;
        public static final int OUTER_MARGIN_RIGHT = 9;
        public static final int OUTER_MARGIN_TOP = 10;
        public static final int OUTER_MARGIN_BOTTOM = 11;
        public static final int ALIGNMENT = 12; // for alignment inside the component
        public static final int CONTAINER_HORIZONTAL_ALIGNMENT = 13;
        public static final int BG_COLOR = 14;
        public static final int FG_COLOR = 15;
        public static final int FONT = 16;
        public static final int BORDER = 17;
        public static final int BG_IMAGE = 18;
        public static final int PAINT_FLAG = 19;
        public static final int VISIBLE = 20;
        public static final int Z_ORDER = 21;        
        public static final int LABEL = 22;
        public static final int LINE_COLOR = 23;
        public static final int TYPE = 24;
        public static final int DATA = 25;
        public static final int FULLSCREEN = 26;
        public static final int FRAME_LINE_VISIBLE = 27;
        public static final int FRAME_LINE_TICKNESS = 28;
        public static final int FRAME_LINE_COLOR = 29;
        public static final int ELEMENT_BG_IMAGE = 30;
        public static final int ELEMENT_SELECTED_IMAGE = 31;
        public static final int SELECTED_BG_COLOR = 32;
        public static final int MARGIN_SELECTED_ELEMENT_VERTICAL = 33;
        public static final int MARGIN_SELECTED_ELEMENT_HORIZONTAL = 34;
        public static final int SPACE_BETWEEN_ELEMENTS = 35;
        public static final int LINE_ICON = 36;
        public static final int SELECTED_LINE_ICON = 37;
        public static final int LINE_HEIGHT = 38;
        public static final int MIN_DIST_BETWEEN_ICON_AND_TEXT = 39;
        public static final int MAX_COUNT_OF_ELEMENTS_IN_CURRENT_PAGE = 40;
        public static final int OLL = 41;
        public static final int OLT = 42;
        public static final int OLC = 43;
        public static final int ILL = 44;
        public static final int ILC = 45;
        public static final int OUTER_LINE_EXISTS = 46;
        public static final int OT = 47;
        public static final int OC = 48;
        public static final int DEFAULT_COMMAND = 49;
        public static final int COMMANDS = 50;
        public static final int POSITION = 51;
        public static final int SOFT_BUTTON_TYPE = 52;
        public static final int SOFT_BUTTON_HEIGHT = 53;
        public static final int ACTIVE = 54;
        public static final int SOFT_MENU = 55;
        public static final int VISIBLE_LINE = 56;
        public static final int SOFT_LINE_COLOR = 57;
        public static final int HARD_LINE_COLOR = 58;
        public static final int MAX_LENGTH = 59;
        
    }
        
}
